package org.jason.minio.mq.producer;

import org.jason.model.user.dtos.ChangeAvatarDto;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class UserProducer {

    @Autowired
    private RabbitTemplate rabbitTemplate;

    //添加到用户修改头像队列
    public void sendChangeAvatarQueue(ChangeAvatarDto dto) {
        rabbitTemplate.convertAndSend("user.avatar.queue", dto);
    }
}
